﻿using System.Web.Mvc;
using System.Web.Routing;

namespace DevFramework.MvcUI
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{categoryId}",
                defaults: new {controller = "Product", action = "Index", categoryId = UrlParameter.Optional},
                namespaces: new[] {"DevFramework.MvcUI.Controllers"});
        }
    }
}
